from tortoise import BaseDBAsyncClient


async def upgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `user_info` DROP COLUMN `orders`;"""


async def downgrade(db: BaseDBAsyncClient) -> str:
    return """
        ALTER TABLE `user_info` ADD `orders` INT NOT NULL  COMMENT '默认排序' DEFAULT 1;"""
